CRPEJob::SetNthSortField

Use SetNthSortField to specify that the report data is sorted according to the specified field and direction.

Syntax
SetNthSortField (sortFieldN SMALLINT, field CHAR(*), direction SMALLINT) 
RETURNING BOOLEAN
Parameters

sortFieldN

Specifies the 0-based number of the sort field that you want to set. The first sort field added to the report is field 0, the second is 1, etc. If the report has N sort fields, the function can be called with this parameter between 0 and N-1 to replace an existing sort field. Call the function with this parameter equal to N to add a new sort field.

field

Specifies the name of the field to be sorted.

direction

Specifies one of the Sort Order Constants.

Returns
Related Topics

PESetNthSortField



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com